package com.hamster.crmpre.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 自定义异常 枚举类型
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnum {
    INVALID_USERNAME_PASSWORD(400,"用户名或密码不正确"),
    DEPARTMENTPARAM_IS_NOT_NULL(400,"部门参数不能为空！"),
    PHONE_CODE_FAIL(400,"系统短信验证码错误！"),
    PHONE_ALREADY_EXISTS(400,"该号码已绑定微信！"),
    PHONE_CODE_ERROR(400,"验证码不正确！"),
    PHONE_CODE_TIMEOUT(400,"验证码已过期！"),
    POTENTIALCUSTOMER_IS_EXIST(400,"该潜在客户他人已录入"),
    POTENTIALCUSTOMER_IS_FORMAL(400,"该客户为正式客户"),
    PHONE_IS_NOT_NULL(400,"手机号不能为空"),
    GENERATE_TOKEN_FAIL(400,"生成Token失败！"),
    INVALID_FILE_FORMAT(400,"文件格式不符合要求"),
    NO_NO_NO(500,"系统异常"),//该异常代表系统不可能出现的错误
    YOU_NOT_COMPANY_PEOPLE(400,"您不是本公司人员，请联系工作人员开通账号"),
    SUPERIOR_IS_NULL(400,"您没有上级，请联系人事部"),
    SUPERIOR_SUPERIOR_IS_NULL(400,"您的上级没有上级，请联系人事部"),
    ALREADY_SUBMITTED(400,"您已提交申请，请等待审核"),
    ;

    private Integer code;
    private String msg;

}
